//
//  NetworkManager.h
//  XLNews
//
//  Created by 薛林 on 16/12/20.
//  Copyright © 2016年 YunTianXia. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^Completion)(NSURLSessionDataTask *task ,NSDictionary *responseObject);
typedef void (^Failure)(NSError *error);

@interface NetworkManager : NSObject

+(NetworkManager *)shareManager;

/**
 *  有请求头的get请求
 */
-(void)Get:(NSString *)url Parameters:(NSDictionary *)parameters Success:(Completion)success Failure:(Failure)failure;


@end
